package com.hd.hdxgddtools.mybatis.config;

import lombok.Data;

@Data
public class TemplateConfig {
    private String entity = "/templates/entity.java";
    private String entityKt = "/templates/entity.kt";
    private String service = "/templates/service.java";
    private String serviceImpl = "/templates/serviceImpl.java";
    private String mapper = "/templates/mapper.java";
    private String xml = "/templates/mapper.xml";
    private String controller = "/templates/controller.java";

    public com.baomidou.mybatisplus.generator.config.TemplateConfig toTemplateConfig() {
        com.baomidou.mybatisplus.generator.config.TemplateConfig config = new com.baomidou.mybatisplus.generator.config.TemplateConfig();
        config
                .setEntity(this.entity)
                .setEntityKt(this.entityKt)
                .setService(this.service)
                .setServiceImpl(this.serviceImpl)
                .setMapper(this.mapper)
                .setXml(this.xml)
                .setController(this.controller);
        return config;
    }
}
